package com.mycontact.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class EditContactPlace extends Place {
	private String contactId;
	
	public EditContactPlace(String token)
	{
		this.contactId = token;
	}

	public String getContactId()
	{
		return contactId;
	}

	public static class Tokenizer implements PlaceTokenizer<EditContactPlace>
	{
		@Override
		public String getToken(EditContactPlace place)
		{
			return place.getContactId();
		}

		@Override
		public EditContactPlace getPlace(String token)
		{
			return new EditContactPlace(token);
		}
	}
}
